package com.dahuyou.tryy.too.parse.clazz.file.clazzfile.constantpool.item;

import com.dahuyou.tryy.too.parse.clazz.file.clazzfile.ClassReader;
import com.dahuyou.tryy.too.parse.clazz.file.clazzfile.constantpool.ConstantInfo;

public class ConstantMethodHandleInfo implements ConstantInfo {

    private int referenceKind;
    private int referenceIndex;

    @Override
    public void readInfo(ClassReader reader) {
//        this.referenceKind = reader.readUint8();
        this.referenceKind = reader.readU1();
//        this.referenceIndex = reader.readUint16();
        this.referenceIndex = reader.readU2();
    }

    @Override
    public int tag() {
        return this.CONSTANT_TAG_METHODHANDLE;
    }

    @Override
    public void showInfo() {

    }
}
